ViewPropertyAnimatorCompat

Functions

Link copied to clipboard
@NonNull
open fun alpha(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's alpha property to be animated to the specified value.
Link copied to clipboard
@NonNull
open fun alphaBy(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's alpha property to be animated by the specified value.
Link copied to clipboard
open fun cancel()
Cancels all property animations that are currently running or pending.
Link copied to clipboard
open fun getDuration(): Long
Returns the current duration of property animations.
Link copied to clipboard
@Nullable
open fun getInterpolator(): @Nullable Interpolator
Returns the timing interpolator that this animation uses.
Link copied to clipboard
open fun getStartDelay(): Long
Returns the current startDelay of property animations.
Link copied to clipboard
@NonNull
open fun rotation(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's rotation property to be animated to the specified value.
Link copied to clipboard
@NonNull
open fun rotationBy(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's rotation property to be animated by the specified value.
Link copied to clipboard
@NonNull
open fun rotationX(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's rotationX property to be animated to the specified value.
Link copied to clipboard
@NonNull
open fun rotationXBy(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's rotationX property to be animated by the specified value.
Link copied to clipboard
@NonNull
open fun rotationY(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's rotationY property to be animated to the specified value.
Link copied to clipboard
@NonNull
open fun rotationYBy(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's rotationY property to be animated by the specified value.
Link copied to clipboard
@NonNull
open fun scaleX(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's scaleX property to be animated to the specified value.
Link copied to clipboard
@NonNull
open fun scaleXBy(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's scaleX property to be animated by the specified value.
Link copied to clipboard
@NonNull
open fun scaleY(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's scaleY property to be animated to the specified value.
Link copied to clipboard
@NonNull
open fun scaleYBy(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's scaleY property to be animated by the specified value.
Link copied to clipboard
@NonNull
open fun setDuration(value: Long): @NonNull ViewPropertyAnimatorCompat
Sets the duration for the underlying animator that animates the requested properties.
Link copied to clipboard
@NonNull
open fun setInterpolator(@Nullable value: @Nullable Interpolator): @NonNull ViewPropertyAnimatorCompat
Sets the interpolator for the underlying animator that animates the requested properties.
Link copied to clipboard
@NonNull
open fun setListener(@Nullable listener: @Nullable ViewPropertyAnimatorListener): @NonNull ViewPropertyAnimatorCompat
Sets a listener for events in the underlying Animators that run the property animations.
Link copied to clipboard
@NonNull
open fun setStartDelay(value: Long): @NonNull ViewPropertyAnimatorCompat
Sets the startDelay for the underlying animator that animates the requested properties.
Link copied to clipboard
@NonNull
open fun setUpdateListener(@Nullable listener: @Nullable ViewPropertyAnimatorUpdateListener): @NonNull ViewPropertyAnimatorCompat
Sets a listener for update events in the underlying Animator that runs the property animations.
Link copied to clipboard
open fun start()
Starts the currently pending property animations immediately.
Link copied to clipboard
@NonNull
open fun translationX(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's translationX property to be animated to the specified value.
Link copied to clipboard
@NonNull
open fun translationXBy(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's translationX property to be animated by the specified value.
Link copied to clipboard
@NonNull
open fun translationY(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's translationY property to be animated to the specified value.
Link copied to clipboard
@NonNull
open fun translationYBy(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's translationY property to be animated by the specified value.
Link copied to clipboard
@NonNull
open fun translationZ(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's translationZ property to be animated to the specified value.
Link copied to clipboard
@NonNull
open fun translationZBy(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's translationZ property to be animated by the specified value.
Link copied to clipboard
@NonNull
open fun withEndAction(@NonNull runnable: @NonNull Runnable): @NonNull ViewPropertyAnimatorCompat
Specifies an action to take place when the next animation ends.
Link copied to clipboard
@NonNull
open fun withLayer(): @NonNull ViewPropertyAnimatorCompat
The View associated with this ViewPropertyAnimator will have its layer type set to LAYER_TYPE_HARDWARE for the duration of the next animation.
Link copied to clipboard
@NonNull
open fun withStartAction(@NonNull runnable: @NonNull Runnable): @NonNull ViewPropertyAnimatorCompat
Specifies an action to take place when the next animation runs.
Link copied to clipboard
@NonNull
open fun x(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's x property to be animated to the specified value.
Link copied to clipboard
@NonNull
open fun xBy(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's x property to be animated by the specified value.
Link copied to clipboard
@NonNull
open fun y(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's y property to be animated to the specified value.
Link copied to clipboard
@NonNull
open fun yBy(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's y property to be animated by the specified value.
Link copied to clipboard
@NonNull
open fun z(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's z property to be animated to the specified value.
Link copied to clipboard
@NonNull
open fun zBy(value: Float): @NonNull ViewPropertyAnimatorCompat
This method will cause the View's z property to be animated by the specified value.